package ynu.edu.service;

import ynu.edu.entities.Address;
import ynu.edu.entities.BaseResponse;

import java.util.List;

public interface AddressService {
    
    /**
     * 根据用户ID查询送货地址列表
     */
    BaseResponse<List<Address>> listAddressByUserId(String userId);
    
    /**
     * 根据地址ID查询送货地址
     */
    Address getAddressById(Integer daId, String userId);
    
    /**
     * 新增送货地址
     */
    BaseResponse<Address> saveAddress(Address address);
    
    /**
     * 更新送货地址
     */
    BaseResponse<Address> updateAddress(Address address);
    
    /**
     * 删除送货地址
     */
    BaseResponse<Void> deleteAddress(Integer daId, String userId);
} 